<?php
/**
 * Created by Benjamin.
 * Date: 2020/5/6
 * Time: 16:50
 */

namespace App\HttpController;

use App\HttpController\AbstractInterface\REST;
use App\Model\CountryCodeModel;
use EasySwoole\Http\Message\Status;
use EasySwoole\Http\Request;
use EasySwoole\Validate\Validate;
class CountryCode extends REST
{
    /**
     * 查询用户
     * @Method(allow={GET})
     */
    function GETInfo()
    {
        $model = new CountryCodeModel();
        $rs = $model->group('prefix_letter')->order('prefix_letter','asc')->all([]);
        $this->writeJson(Status::CODE_OK, $rs, "success");
    }

}